#include "stdafx.h"
 using namespace std;
 
 Mod_Crop::Mod_Crop(Mod_in *iinp):Mod_out_handling(iinp){ }
 Mod_Crop::~Mod_Crop(){}
int Mod_Crop::compute(time_intervall &ti){}
 
 Mod_Crop_epi::Mod_Crop_epi(map <string,int> &iIO_options,
                         Mod_in *iinp,
                         Mod_ETP *imod_etp,
                         Mod_wc *imod_wc,
                         Mod_Soiltemp *imod_soiltemp,
                         Mod_NO3 *imod_no3,
                         Mod_NH4 *imod_nh4,
                         Inp_croprot *iinp_croprot
                         ):Mod_Crop(iinp)
 {
     //1. switches setzen
    IO_options=iIO_options;
    //2. Input_objekt setzen

    //3. Out setzen
    
    
    //4. Modelle verknüpfen
    
    mod_etp=imod_etp;
    mod_wc=imod_wc;
    mod_soiltemp=imod_soiltemp;
    mod_no3=imod_no3;
    mod_nh4=imod_nh4;
    inp_croprot=iinp_croprot;
    
    
   
    
    //5. Output_kategorien für diese Variante setzen!!
 }
 
 int Mod_Crop_epi::compute(time_intervall &ti)
 {
     // seeding within intervall  if yes pushback a new crop
    int x;
    int nseeds= inp_croprot->get_number_of_seeding_dates_within_intervall(ti);
    for x=0;x<nseeds;x++)
    {
        crop=new Crop_epi();
        vect_crop.push_back(crop);
    }
        
 }